<template>
  <div>
    <h2 v-if="error.statusCode == 404">404页面不存在</h2>
    <h2 v-else>500服务器错误</h2>
    <p>
      <nuxt-link to="/">回到首页</nuxt-link>
    </p>
  </div>
</template>

<script>
export default {
  props: ["error"]
};
</script>
<style lang="scss" scoped>
a{
  font-size: 21px;
  text-decoration: none;
}
</style>
